﻿/**
* События для меню
* @author firsoff maxim, email: firsoff_maxim@mail.ru, icq:235859730, tel:+79222345364
* @version 0.0.1 / 10.03.2008 2:03
*/

package ru.vega_int.firsoff.as3.events
{
	import flash.events.Event;
	public class MenuEvent extends Event
	{
		public var eventObject:Object;
		public var typeEvent:String;
		public static const CLICK:String = 'item_click';
		public static const ROLL_OVER:String = 'roll_over';
		public static const ROLL_OUT:String = 'roll_out';
		
		public function MenuEvent(type:String, eventObject:Object=null)
		{
			this.typeEvent = type;
			this.eventObject = eventObject;
			super(type);
		};

		public override function clone():Event 
		{
			//trace('eventObject = '+eventObject)
			return new MenuEvent(type, eventObject);
		};
		
		 public override function toString():String
		{
			return formatToString(this.typeEvent, "type", "bubbles", "cancelable", "eventPhase", "message");
		};
	};
}